//
//  InstallationDetailSystemDetailForHeaderModel.swift
//  GreenDeal
//
//  Created by Moennig Q on 2023/7/25.
//

import UIKit
import HandyJSON

class InstallationDetailSystemDetailForHeaterModel: NSObject, HandyJSON,Copying {
    var id: Int64 = 0//是pvd detail中此，system->Panel数据的主键
    var brand: String = ""
    @objc dynamic var model: String = ""
    @objc dynamic var number_heaters: Int64 = 0
    //字典中heater的id,用于修改heater信息上传用
    var heater_brand_id: Int64 =  0
    //删除标记
    var deleted_at: Bool = false
    var valid_flag: Bool = true//true,表示当前model是无效的，因为改了安装日期，可能会变成无效的
    var approved_date: String = ""//审核通过时间
    var expiry_date: String = ""//过期时间
    //这两个标志是自己定义的字段（不是API返回的，因为系统设计只有一条tank info，但是这两个标志位在system_detail中，所以复制到这里方便UI显示及交互）
    var second_hand_flg: Bool = false//为 true 表示是二手
    var multi_heater_flg: Bool = false//为 true 表示装有多个热水器
    required override init() {
        
    }
    required init(original: InstallationDetailSystemDetailForHeaterModel) {
        id = original.id
        brand = original.brand
        model = original.model
        number_heaters = original.number_heaters
        heater_brand_id = original.heater_brand_id
        deleted_at = original.deleted_at
        second_hand_flg = original.second_hand_flg
        multi_heater_flg = original.multi_heater_flg
    }
}
